negotiator.qualitymeasures
Class ScenarioMeasures
java.lang.Object
negotiator.qualitymeasures.ScenarioMeasures
public class ScenarioMeasures
- extends java.lang.Object
This class is an improved version of the SpaceDistance class by D. Tykhonov.
Edit and run the main to automatically create a XML-sheet with the scenario characteristics
of all scenarios in the domain file.
Note that the current implementation assumes that all domains only have two
preference profiles. For future work this could be extended by creating an arraylist
of all preference profiles and returning the distances between all possible pairs.
- Author:
- Mark Hendrikx
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScenarioMeasures
public ScenarioMeasures()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args -
- Throws:
java.lang.Exception
process
public static void process(java.lang.String dir)
throws java.lang.Exception
- Calculates all metrics and saves the results. This is NOT the place
to add mew metrics.
- Parameters:
dir - path to Genius main dir
- Throws:
java.lang.Exception
calculateDistances
public static OrderedSimpleElement calculateDistances(OrderedSimpleElement element,
UtilitySpace utilitySpaceA,
UtilitySpace utilitySpaceB)
- Calculate all metrics. This method should be extended if you want
to add your own measures.
- Parameters:
element - utilitySpaceA - utilitySpaceB -
- Returns:
- XML representation of the domain characteristics